import request from '@/utils/request'

// 查询学校招生计划列表
export function listSchoolPlan(query) {
  return request({
    url: '/system/schoolPlan/list',
    method: 'get',
    params: query
  })
}

// 查询学校招生计划列表
export function checkListSchoolPlan(query) {
  return request({
    url: '/system/schoolPlan/checkList',
    method: 'get',
    params: query
  })
}

// 查询学校招生计划详细
export function getSchoolPlan(id) {
  return request({
    url: '/system/schoolPlan/' + id,
    method: 'get'
  })
}

// 新增学校招生计划
export function addSchoolPlan(data) {
  return request({
    url: '/system/schoolPlan',
    method: 'post',
    data: data
  })
}

// 修改学校招生计划
export function updateSchoolPlan(data) {
  return request({
    url: '/system/schoolPlan',
    method: 'put',
    data: data
  })
}

// 删除学校招生计划
export function delSchoolPlan(id) {
  return request({
    url: '/system/schoolPlan/' + id,
    method: 'delete'
  })
}
